<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it" dir="ltr">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Bar</title>

		<style type="text/css">

		body {
		 background-color: #fff;
		 margin: 40px;
		 font-family: Lucida Grande, Verdana, Sans-serif;
		 font-size: 14px;
		 color: #4F5155;
		}

		a {
		 color: #003399;
		 background-color: transparent;
		 font-weight: normal;
		}

		h1 {
		 color: #444;
		 background-color: transparent;
		 border-bottom: 1px solid #D0D0D0;
		 font-size: 16px;
		 font-weight: bold;
		 margin: 24px 0 2px 0;
		 padding: 5px 0 6px 0;
		}

		code {
		 font-family: Monaco, Verdana, Sans-serif;
		 font-size: 12px;
		 background-color: #f9f9f9;
		 border: 1px solid #D0D0D0;
		 color: #002166;
		 display: block;
		 margin: 14px 0 14px 0;
		 padding: 12px 10px 12px 10px;
		}

		</style>
	</head>
	<body>
		<div>
			<h1>Dettaglio pagina</h1>
			
			<?php
			
			//var_dump($pages);
			
			foreach ($pages as $page) 
			{
				echo "<h2>". $page->title ."</h2>";
				echo "<h3>". $page->body ."</h3>";
				echo "<h4>". $page->author ."</h4>";
				
				echo "<hr />";
				
				echo $page->num_comments. " commenti<br/>";
				
				echo "<hr /><br /><br />";
				
				echo $page->comm_auth ."<br />";
				echo $page->comm_body ."<br />";
				
			}
			
			echo anchor('pages/', 'Indietro') ."<br /><br />";
			
			?>
			
			<?=$this->benchmark->elapsed_time();?>
		</div>
	</body>
</html>
